import { request } from '@/utils'

//登录请求
export function LonginApi(formData) {
    try {
        return request({
            url: '/geek/login',
            method: 'POST',
            data: formData
        })
    } catch (error) {
        console.log("error:", error)
    }
}

//获取用户信息请求
export function GetuserInfoApi() {
    try {
        return request({
            url: '/geek/userinfo',
            method: 'GET'
        })
    } catch (error) {
        console.log("error:", error)
    }
}